package component;

import java.awt.Color;
import javax.swing.ImageIcon;
import javax.swing.JButton;

public class MyButton extends JButton{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public MyButton() {
		//Font font=new Font("Tahoma", Font.BOLD, 13);
		//setFont(font);
		setBackground(Color.CYAN);
	}
	public MyButton(String text){
		//Font font=new Font("Tahoma", Font.BOLD, 13);
		//setFont(font);
		setText(text);
	}
	public MyButton(String text1,String text2){
		//Font font=new Font("Tahoma", Font.BOLD, 13);
		//setFont(font);
		setText(text1);
		setIcon(new ImageIcon("images/"+text2+""));
	}

}
